Change bare-symbol back to match intent
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Mar 2024 07:03:39 +0000 (00:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Mar 2024 07:34:27 +0000 (00:34 -0700)
commit2d61ebb505977af4f9fd90f92a776599a73f8501
tree3ac892ed33305f86f65444caed2dd56e3a41c298
parentbbc53e0bcf3fe18e7c1cd51fb8719cf62b9f6c71
Change bare-symbol back to match intent

Also, attempt to document the intent better.
Problem reported by Alan Mackenzie (Bug#69684).
* src/data.c (Fbare_symbol): Do not signal if the SYM is a symbol
with position and symbols-with-pos-enabled is nil.  Instead,
ignore symbols-with-pos-enabled, as that was the intent.
* test/src/data-tests.el (data-tests-bare-symbol):
New test, to help prevent this bug from reoccurring.
doc/lispref/objects.texi
doc/lispref/symbols.texi
src/data.c
test/src/data-tests.el